home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / dos / openfromlock.c < prev    next >
C/C++ Source or Header  |  1996-09-12  |  2KB  |  68 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: openfromlock.c,v 1.3 1996/08/13 13:52:49 digulla Exp $
  4.     $Log: openfromlock.c,v $
  5.     Revision 1.3  1996/08/13 13:52:49  digulla
  6.     Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h"
  7.     Replaced __AROS_LA by __AROS_LHA
  8.  
  9.     Revision 1.2  1996/08/01 17:40:55  digulla
  10.     Added standard header for all files
  11.  
  12.     Desc:
  13.     Lang: english
  14. */
  15. #include <clib/exec_protos.h>
  16. #include <dos/dosextens.h>
  17.  
  18. /*****************************************************************************
  19.  
  20.     NAME */
  21.     #include <clib/dos_protos.h>
  22.  
  23.     __AROS_LH1(BPTR, OpenFromLock,
  24.  
  25. /*  SYNOPSIS */
  26.     __AROS_LHA(BPTR, lock, D1),
  27.  
  28. /*  LOCATION */
  29.     struct DosLibrary *, DOSBase, 63, Dos)
  30.  
  31. /*  FUNCTION
  32.     Convert a lock into a filehandle. If all went well the filehandle
  33.     will be gone. In case of an error it must still be freed.
  34.  
  35.     INPUTS
  36.     lock - Lock to convert.
  37.  
  38.     RESULT
  39.     New filehandle or 0 in case of an error. IoErr() will give
  40.     additional information in that case.
  41.  
  42.     NOTES
  43.     Since locks and filehandles in AROS are identical this function
  44.     is just the (useless) identity operator and thus can never fail.
  45.     It's there for compatibility to Amiga OS.
  46.  
  47.     EXAMPLE
  48.  
  49.     BUGS
  50.  
  51.     SEE ALSO
  52.  
  53.     INTERNALS
  54.  
  55.     HISTORY
  56.     29-10-95    digulla automatically created from
  57.                 dos_lib.fd and clib/dos_protos.h
  58.  
  59. *****************************************************************************/
  60. {
  61.     __AROS_FUNC_INIT
  62.     __AROS_BASE_EXT_DECL(struct DosLibrary *,DOSBase)
  63.  
  64.     /* Warning: Some very tricky operation ahead ;-). */
  65.     return lock;
  66.     __AROS_FUNC_EXIT
  67. } /* OpenFromLock */
  68.